package com.example.albumphoto

import android.app.Application
import android.util.Log

class MyApplication: Application() {

    companion object {
        lateinit var instance: MyApplication
            private set
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        initializeApp()
    }

    private fun initializeApp() {
        // 在这里进行应用初始化
        Log.i("MyApp", "Application initialized")

        // 示例：初始化第三方库
        // Firebase.initializeApp(this)
        // Stetho.initializeWithDefaults(this)
    }
}